package com.abaaba.project2.controller;

import com.abaaba.project2.bean.Log;
import com.abaaba.project2.bean.bo.LogListBo;
import com.abaaba.project2.bean.vo.BaseRespVo;
import com.abaaba.project2.bean.vo.GeneralListVo;
import com.abaaba.project2.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class AdminLogController {

    @Autowired
    AdminLogService adminLogService;

    @RequestMapping("/list")
    public BaseRespVo getLogList(LogListBo logListBo)
    {
        GeneralListVo<Log> logGeneralListVo = adminLogService.getLogList(logListBo);

        return BaseRespVo.ok(logGeneralListVo);
    }
}
